<h1>Viewing Item</h1>
<?php
    echo content_tag('p',link_to('Back to List View','index'));
    if ( is_array($fields) && !empty($fields) )
    {
        echo content_tag('p',link_to('Edit This','modify?id='.$fields['id']));
        echo "<dl>";
        foreach( $fields as $key=>$value )
        {
            printf("<dt>%s</dt><dd>%s</dd>",$key,$value);
        }
        echo "</dl>";
    }

?>